﻿<!DOCTYPE html>
<html>
<head>
    <title></title>
	<meta charset="utf-8" />
    <script src="Scripts/jquery-1.11.3.min.js"></script>
    <script type="text/javascript">
        $(function () {
            var url = "ws://localhost:8089";
            var ws = new WebSocket(url);
            ws.onopen = function (evt) {
                alert("Open");
            };
            ws.onmessage = function (evt) {
                alert("message: " + evt.data);
            };
            ws.onerror = function (evt) {
                alert("Error");
            };
            ws.onclose = function (evt) {
                alert("Close");
            };
            $("#send").click(function () {
                ws.send("Hello");
            });
        });
    </script>
</head>
<body>
    <button id="send">Send</button>
</body>
</html>
